package app.text;

import java.text.MessageFormat;
import java.util.Date;
import java.util.Locale;
import java.util.ResourceBundle;

public class MessageFormatThree {
	public static void main(String[] args) {
		Locale locale = Locale.getDefault();
		ResourceBundle resourceBundle = ResourceBundle.getBundle("MessageFormat",locale);
		String userName = resourceBundle.getString("userName");
		System.out.println(MessageFormat.format(userName, "丁",new Date()));
	}
}
